/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.fleet.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 车队费用Entity
 * @author 李超辉
 * @version 2017-11-24
 */
public class MotorcadeCost extends DataEntity<MotorcadeCost> {
	
	private static final long serialVersionUID = 1L;
	private VehicleInformation vehicleInformation;		// 车牌号
	private VehicleInformation carRegistration;		// 车挂号
	private String driver;		// 司机
	private Date date;		// 日期
	private String disbursementType;		// 支出类型（隐藏）
	private String cost;		// 费用
	private String costNumber;		// 关联ID
	private String  projectName; //项目名称



	public MotorcadeCost() {
		super();
	}

	public MotorcadeCost(String id){
		super(id);
	}

	@ExcelField(title="车牌号",fieldType=VehicleInformation.class, value="", align=2, sort=1)
	public VehicleInformation getVehicleInformation() {
		return vehicleInformation;
	}

	public void setVehicleInformation(VehicleInformation vehicleInformation) {
		this.vehicleInformation = vehicleInformation;
	}
	
	@ExcelField(title="车挂号", align=2, sort=2)
	public VehicleInformation getCarRegistration() {
		return carRegistration;
	}

	public void setCarRegistration(VehicleInformation carRegistration) {
		this.carRegistration = carRegistration;
	}
	
	@ExcelField(title="司机", align=2, sort=3)
	public String getDriver() {
		return driver;
	}

	public void setDriver(String driver) {
		this.driver = driver;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="日期", align=2, sort=4)
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}
	
	@ExcelField(title="支出类型（隐藏）", align=2, sort=5)
	public String getDisbursementType() {
		return disbursementType;
	}

	public void setDisbursementType(String disbursementType) {
		this.disbursementType = disbursementType;
	}
	
	@ExcelField(title="费用", align=2, sort=6)
	public String getCost() {
		return cost;
	}

	public void setCost(String cost) {
		this.cost = cost;
	}
	
	@ExcelField(title="关联ID", align=2, sort=7)
	public String getCostNumber() {
		return costNumber;
	}

	public void setCostNumber(String costNumber) {
		this.costNumber = costNumber;
	}

	 @ExcelField(title="项目名称",align =2,sort=8)
	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
}